package com.itheima_13;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.stream.Stream;

public class test_13_4 {
    public static void main(String[] args) {
        //单列集合
         List<String> list=new ArrayList<>();
         list.add("hj");
         list.add("sfhjk");
         list.add("fjf");
         list.stream().filter(s -> s.startsWith("h")).forEach((s)-> System.out.println(s));
         //双列集合
        HashMap<String,String> hm=new HashMap<>();
        hm.put("wangwu","25");
        hm.put("lisi","24");
        hm.put("zhangsan","23");
        long count = hm.entrySet().stream().count();
        System.out.println(count);
    }
}
